package com.itcast.fjs.controller;

import com.itcast.fjs.pojo.ConfigPropertis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author feng js
 */
@RestController
@RequestMapping("test")
public class PropertiesController {
    @Autowired
    ConfigPropertis configPropertis;

    @GetMapping("redis")
    public ConfigPropertis getpropertis() {
        return configPropertis;
    }
}
